Sets the current date of the system
#include <Date.au3>
_SetDate($iDay[, $iMonth=0 [, $iYear=0]])
Parameters
$iDay | Day of the month. Values: 1-31 |
$iMonth | Optional: month. Values: 1-12 |
$iYear | Optional: year. Values: > 0 (windows might restrict this further!!) |
Return Value
Success: | 1 |
Failure: | 0 |
@Error: | 0 = No error. |
1 = Failure | |
@extended | GetLastError() Error code(s): http://msdn.microsoft.com/library/default.asp?url=/library/en-us/debug/base/system_error_codes.asp |
Remarks
If the optional parameters (iMonth,iYear) are NOT defined, the function will not change the current value!
Related
_SetTime
Example
#include <Date.au3>
_SetDate(20) ; Set the current date to 20-xx-xxxx
_SetDate(20,10) ; Set the current date to 20-10-xxxx
_SetDate(20,10,2004) ; Set the current date to 20-10-2004